#include "htf_flatbuffers_glue.h"
#include <stdio.h>
#include <stdlib.h>

// TODO: Integrate FlatBuffers C API in the future.
// Currently a stub implementation: only checks whether the file exists
int htf_flatbuffers_parse_model(const char* model_path, void** out_meta) {
    if (!model_path || !out_meta) {
        return -1;
    }

    FILE* f = fopen(model_path, "rb");
    if (!f) {
        return -2;
    }
    fclose(f);

    // Do not parse for now; return success
    *out_meta = NULL;
    return 0;
}